package com.fs.system.common;

public enum ResultEnums {
    OK("200", "请求成功"),
    CREATED("201", "新增成功"),
    DELETED("204", "删除成功"),
    UPDATED("205", "修改成功"),
    SELECT("202", "查询成功"),
    BAD_REQUEST("400", "请求的地址不存在或者包含不支持的参数"),
    UNAUTHORIZED("401","未授权"),
    FORBIDDEN("403","被禁止访问"),
    NOT_FOUND("404","请求的资源不存在"),
    UNPROCESSABLE_ENTITY("422","[POST/PUT/PATCH] 当创建一个对象时，发生一个验证错误"),
    INTERNAL_SERVER_ERROR("500","内部服务器错误");

    private String code;
    private String msg;

    ResultEnums(String code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    /*public void setCode(String code) {
        this.code = code;
    }*/

    public String getMsg() {
        return msg;
    }

    /*public void setMsg(String msg) {
        this.msg = msg;
    }*/
}
